cmake_minimum_required(VERSION 2.8.12)

SET (TARGET marble-vectorosm-tilecreator)
PROJECT (${TARGET})

if (POLICY CMP0063)
    cmake_policy(SET CMP0063 NEW)
endif()

find_package(Qt5Core REQUIRED)
find_package(Qt5Widgets REQUIRED)
find_package(Qt5Gui REQUIRED)

include_directories(
 ${CMAKE_CURRENT_SOURCE_DIR}
 ${CMAKE_CURRENT_BINARY_DIR}
../../src/lib/marble/osm
../../src/lib/marble/geodata/writer
../../src/lib/marble/geodata/parser
../../src/lib/marble/geodata/data
../../src/lib/marble/geodata
../../src/lib/marble/
../mbtile-import
)

set( ${TARGET}_SRC 
../mbtile-import/MbTileWriter.cpp
clipper/clipper.cpp
main.cpp
BaseClipper.cpp
BaseFilter.cpp
NodeReducer.cpp
TagsFilter.cpp
TileIterator.cpp
TileDirectory.cpp
VectorClipper.cpp
WayConcatenator.cpp
WayChunk.cpp
)

add_executable( ${TARGET} ${${TARGET}_SRC} )

target_link_libraries(${TARGET} marblewidget Qt5::Sql)
